<script type="text/javascript">
	function Can_not_use()
	{
		alert("Chá»©c nÄƒng nÃ y chÆ°a thá»ƒ sá»­ dá»¥ng!");
		}
</script>

<div class="heading_news bd_b2">
	<span class="menu_news"><?php echo news?></span> &raquo; <span
		class="lmenu_news"><a href="">Tá»•ng há»£p</a></span> <span
		class="date_post"><?php echo date("d/m/Y h:m")?></span>
</div>
<!--End.heading_news-->
<div class="top_news">
	<div class="news_noibat">
            <?php $great = $this->GreateView?>
            <a
			href="<?php echo DOMAIN."/Tin-Tuc/".$great["id"].".html"?>"><img
			src="<?php echo $great["IMG"]?>" /></a>
		<div class="title_news_noibat">
			<a
				href="#"><?php echo $great["TITLE"]?></a>
		</div>
	</div>
	<div class="news_xemnhieu">
		<h3><?php echo best_view_news?></h3>
		<ul>
                <?php foreach ($this->topView as $top):?>
                	<li><a
				href="<?php echo DOMAIN."/Tin-Tuc/".$top["id"].".html"?>"><?php echo $top["TITLE"]?></a></li>
                <?php endforeach;?>
                </ul>
	</div>
</div>
<!--End .top_news-->
<div style="clear: both; height: 0px;">&nbsp;</div>
<?php foreach ($this->allNews as $n):?>
<div class="list_news">
	<a
		href="<?php echo DOMAIN."/Tin-Tuc/".$n["id"].".html"?>"><img
		src="<?php echo $n["IMG"]?>" alt="<?php echo $n["TITLE"]?>"
		title="<?php echo $n["TITLE"]?>" border="1" /></a> <a
		class="title_baiviet"
		href="<?php echo DOMAIN."/Tin-Tuc/".$n["id"].".html"?>"><h4><?php echo $n["TITLE"]?></h4></a>
	<p><?php echo $n["SHORT_CONTENT"]?></p>
	<span class="tag">Tags: </span><span class="list_tag"><?php echo $n["TAGS"]?></tag>
		</p>

</div>
<!--End.list_news-->
<?php endforeach;?>
<div style="clear: both; height: 0px;">&nbsp;</div>
<div class="pages">
		<?php echo $this->paginationControl($this->allNews,"Sliding","pagination.phtml")?>
	</div>
<!--End .pages-->
<div class="orther_news">
	<h4><?php echo others_news?></h4>
	<ul>
		<?php foreach ($this->random as $r):?>
			<?php if((date("d/m/Y",strtotime($r["UPDATE"]))) == (date("d/m/Y")) ){?>
				<li><a
			href="<?php echo DOMAIN."/Tin-Tuc/".$r["id"].".html"?>"><?php echo $r["TITLE"]?></a><span><img
				alt=""
				src="<?php echo STYLE.'/public/uploaded/images/news/no_image.jpg' ?>"
				height="15" width="15"></span><span class="date_post2"> <?php echo date("d/m/Y h:m",strtotime($r["UPDATE"]))?></span></li>
			<?php }else{?>
			<li><a
			href="<?php echo DOMAIN."/Tin-Tuc/".$r["id"].".html"?>"><?php echo $r["TITLE"]?></a><span
			class="date_post2"> <?php echo date("d/m/Y h:m",strtotime($r["UPDATE"]))?></span></li>
			<?php }?>
		<?php endforeach;?>
		</ul>
	<a href="#" onclick="Can_not_use();" class="xemthem"><?php echo read_more?></a>
</div>
<!--End.orther_news-->

<div class="xemtheongay bd_b1">
	<form methord="" action="">
		<h4><?php echo view_by_date?></h4>
		<script type="text/javascript"
			src="<?php echo STYLE."/public/default"?>/js/datepicker.js"></script>
		<link href="<?php echo STYLE."/public/default"?>/css/datepicker.css"
			rel="stylesheet" type="text/css" />

		<p>
			<input type="text" class="w16em" id="dp-2" name="dp-2" value="" /> <input
				type="submit" name="submit" onclick="Can_not_use();" value="Xem"
				width="50" />
		</p>

		<script type="text/javascript">      
					var opts = {                      
							// Attach input with an id of "dp-2" and give it a "d-sl-m-sl-y" date format (e.g. 13/03/90)         
							formElements:{"dp-2":"d-sl-m-sl-y"},
							// Show week numbers
							showWeeks:true                    
					};      
					datePickerController.createDatePicker(opts);
                </script>

</div>
<!--End.Xemtheongay-->